function ConnectAdapter(server,system)
{
	//alert(system);
	if(system=="Demo")
	{
		var obj = new clsDemoConnect(server);
		return obj;
	}
	if(system=="CIC")
	{
		var obj = new clsCICConnect(server);
		return obj;
	}
	
	
}


function UserAdapter(system)
{
	
	if(system=="Demo")
	{
		var obj = new clsDemoUser();
		return obj;
	}
	if(system=="CIC")
	{
		var obj = new clsCICUser();
		return obj;
	}
	
}

function QueueEventAdapter(system)
{
	if(system=="Demo")
	{
		var obj = new clsDemoQueueEvent();
		return obj;
	}
	
	if(system=="CIC")
	{	
		var obj = new clsCICQueueEvent();
		return obj;
	}
}


function CallToolAdapter(system)
{
	if(system=="Demo")
	{
		var obj = new clsDemoCallTool();
		return obj;
	}
	if(system=="CIC")
	{
		var obj = new clsCICCallTool();
		return obj;
	}
}


